<?php

namespace app\info\model;

use app\user\model\UserModel;
use think\admin\Model;

class QuestionModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_question";

    public function Questionnaire(): \think\model\relation\HasOne
    {
        return $this->hasOne(QuestionnaireModel::class, 'id', 'qid');
    }
}